package com.zm.springboot.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Data
@Component
@ConfigurationProperties("demo")
public class MyProperties {
    String name;
    int age;
    String[] likes;
    List<String> schools;
    List<MyProperties> friends;
    Map<String,String> familys;
    List<Map<String,String>> dogs;
}
